import { Vector3 } from '../Math/Vector3'

export class Material {
    readonly type: string
    color: Vector3
    constructor(color: Vector3 = new Vector3(1, 1, 1)) {
        this.type = 'Material'
        this.color = color
    }
    setColor(color: Vector3) {
        this.color = color
    }
    getJson() {
        const outJson = {
            type: this.type,
            color: this.color
        }
        return outJson
    }
}